package view;

import java.text.DateFormat;
import java.text.SimpleDateFormat;

import javax.swing.table.DefaultTableCellRenderer;

class MyDateRenderer extends DefaultTableCellRenderer {
	DateFormat formatter;
	
	public MyDateRenderer() {
		super();
	}
	
	public void setValue(Object value) {
		if (formatter == null) {
			formatter = new SimpleDateFormat("dd.MM.yyyy HH:mm");
		}
		
		setText((value == null) ? "" : formatter.format(value));
	}
}
